package com.charm.transaction.adapter

import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.charm.frameworkarou.recycleadapter.QuickRecyAdapter
import com.charm.transaction.R

/**
 * Created by tools on 2018/1/4.
 */
class TransactionAdapter<String>(item : List<String>) : QuickRecyAdapter<String>(item) {
    lateinit var s:kotlin.String
    override fun getLayoutResId(): Int {
        return R.layout.item_transaction
    }

    override fun convert(helper: BaseViewHolder?, item: String?) {
        helper!!.getView<TextView>(R.id.text).text = item.toString()
    }

}